<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
// API 模板文件，可以复制
namespace api\resource\controller;

use think\Db;
use think\Request;
use think\Validate;
use cmf\controller\RestBaseController;

class Biao33Controller extends RestBaseController
{


    public function one($data)
    {

        //查 这个表的数据
        @$new_data = $data[0]['content'];
        if (empty($new_data)) {
            return '';
        }

       $html = '
        <div style="width: 650px;margin: 0 auto;">
            <div style="font-size: 16px;font-weight: 600;margin-bottom: 15px;">十一、项目经费预算</div>
            <table border="1" cellspacing="0px" cellpadding="5px" width="650">
                <tbody>
                <tr>
                    <td colspan="3">项目经费：</td>
                </tr>
                <tr>
                    <td>资金来源</td>
                    <td colspan="2">自筹资金</td>
                </tr>
                <tr>
                    <td>'.@$new_data->text1.'</td>
                    <td colspan="2">'.@$new_data->text2.'</td>
                </tr>
                <tr>
                    <td>'.@$new_data->text3.'</td>
                    <td colspan="2">'.@$new_data->text4.'</td>
                </tr>
                <tr>
                    <td>'.@$new_data->text5.'</td>
                    <td colspan="2">'.@$new_data->text6.'</td>
                </tr>
                <tr>
                    <td>'.@$new_data->text7.'</td>
                    <td colspan="2">'.@$new_data->text8.'</td>
                </tr>
                <tr>
                    <td>'.@$new_data->text9.'</td>
                    <td colspan="2">'.@$new_data->text10.'</td>
                </tr>
                <tr>
                    <td>合计</td>
                    <td colspan="2">'.@$new_data->text11.'</td>
                </tr>
                <tr>
                    <td colspan="3" class="title">支出预算明细</td>
                </tr>
                <tr>
                    <td>支出科目</td>
                    <td>经费额</td>
                    <td>用途说明</td>
                </tr>
                <tr>
                    <td>一、劳务费/人员费</td>
                    <td>'.@$new_data->text12.'</td>
                    <td>'.@$new_data->text13.'</td>
                </tr>
                <tr>
                    <td>二、设备费</td>
                    <td>'.@$new_data->text14.'</td>
                    <td>'.@$new_data->text15.'</td>
                </tr>
                <tr>
                    <td>1.购置费</td>
                    <td>'.@$new_data->text16.'</td>
                    <td>'.@$new_data->text17.'</td>
                </tr>
                <tr>
                    <td>2.试制费</td>
                    <td>'.@$new_data->text18.'</td>
                    <td>'.@$new_data->text19.'</td>
                </tr>
                <tr>
                    <td>三、材料费</td>
                    <td>'.@$new_data->text20.'</td>
                    <td>'.@$new_data->text21.'</td>
                </tr>
                <tr>
                    <td>四、燃料动力费</td>
                    <td>'.@$new_data->text22.'</td>
                    <td>'.@$new_data->text23.'</td>
                </tr>
                <tr>
                    <td>五、测试化验加工费</td>
                    <td>'.@$new_data->text24.'</td>
                    <td>'.@$new_data->text25.'</td>
                </tr>
                <tr>
                    <td>六、会议/差旅/国际合作与交流费</td>
                    <td>'.@$new_data->text26.'</td>
                    <td>'.@$new_data->text27.'</td>
                </tr>
                <tr>
                    <td>七、出版/文献/信息传播/知识产权事务费</td>
                    <td>'.@$new_data->text28.'</td>
                    <td>'.@$new_data->text29.'</td>
                </tr>
                <tr>
                    <td>八、专家咨询费</td>
                    <td>'.@$new_data->text30.'</td>
                    <td>'.@$new_data->text31.'</td>
                </tr>
                <tr>
                    <td>九、其它直接费用</td>
                    <td>'.@$new_data->text32.'</td>
                    <td>'.@$new_data->text33.'</td>
                </tr>
                <tr>
                    <td>十、间接费用</td>
                    <td>'.@$new_data->text34.'</td>
                    <td>'.@$new_data->text35.'</td>
                </tr>
                <tr>
                    <td>合 计</td>
                    <td>'.@$new_data->text36.'</td>
                    <td>'.@$new_data->text37.'</td>
                </tr>
                <tr>
                    <td colspan="3">注：自筹资金由项目申报单位自身筹措，不包含来自各级政府部门的财政资金，参照前期资助类项目经费管理，经费预算按项目申报单位实际需要进行编制。</td>
                </tr>
                <tr>
                    <td>本项目申请市财政补助经费额度为：</td>
                    <td colspan="2">'.@$new_data->text38.'</td>
                </tr>
                </tbody>
            </table>
        </div>
        ';

            return $html;

    }



}
